package com.zhuiyun.project.api.complaint.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * @ClassName ComplaintFile
 * @Description TODO
 * @Author DF
 * @Date 2023/12/18 9:05
 **/
@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
@Table(name = "complaid_file")
public class ComplaidFile {
    /**
     *投诉附件主键Id
     **/
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @ApiModelProperty("投诉附件主键Id")
    private Integer id;
    /**
     *文件名称
     **/
    @ApiModelProperty("文件名称")
    private String fileName;
    /**
     *投诉Id
     **/
    @ApiModelProperty("投诉Id")
    private Integer complainId;
    /**
    *上传时间
    **/
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss" )//DateTimeFormat 是入参格式化；
    @ApiModelProperty("上传时间")
    private Data uploadTime;
    /**
     *文件Id
     **/
    @ApiModelProperty("文件Id")
    private Integer fileId;
    /**
     *删除标志
     **/
    @ApiModelProperty("删除标志")
    private Integer delFlag;
}
